/**
 * Created by mengwei666 on 2016/9/22.
 *   这是Requirement C 的示例
 */
package iss.java;

import iss.java.list.MyList;
import iss.java.list.Node;
public class homework_1 {
    public static void main(String[] args) {
        MyList list1=new MyList();
        MyList list2=new MyList();
        list2.insert(list1.getHead(),233); //检测list1是否能在list2中插入数据
        System.out.println(list1.getHead().getNext().getData());
        list2.insert(list2.getHead(),233);
        list1.remove(list2.getHead().getNext());//检测list1是否能删除list2的数据
        System.out.println(list2.getHead().getNext().getData());
    }
}
